from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from config import config

# 使用配置中的数据库连接字符串
SQLALCHEMY_DATABASE_URL = config.SQLALCHEMY_DATABASE_URI
# 创建数据库引擎
engine = create_engine(SQLALCHEMY_DATABASE_URL)
# 创建会话工厂
# SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)